import Vue from 'vue'
import VueRouter from 'vue-router'
import MedicalIndex from '@/components/MedicalIndex.vue'
import GoinHospital from '@/components/GoinHospital.vue'
import GoOutHospital from '@/components/GoOutHospital.vue'
import NurseQuery from '@/components/NurseQuery.vue'
import DoctorQuery from '@/components/DoctorQuery.vue'
import text from '@/components/treatmentPackage/text.vue'

Vue.use(VueRouter)

const routes = [
  {path:'/',redirect:'/medicalIndex'},
  {path: '/medicalIndex',component: MedicalIndex,
    children:[
      {path:'/goinHospital',component:GoinHospital},
      {path:'/goOutHospital',component:GoOutHospital},
      {path:'/nurseQuery',component:NurseQuery},
      {path:'/doctorQuery',component:DoctorQuery}
    ]
  },
  {path:'/text',component:text},
  
]

const router = new VueRouter({
  routes
})

export default router
